//
//  Hook.cpp
//  dentist
//
//  Created by Denveryee on 13-12-4.
//
//

#include "Hook.h"
#include "HelloWorldScene.h"
#include "BaseBadPoint.h"
#include "Tool.h"

Hook::Hook(void)
{
}

Hook::~Hook(void)
{
	pTool->autorelease();
}

Hook::Hook(CCLayer* helloWorld, std::vector<BaseTooth*> pTwTooth){
    pTool = new Tool(pTwTooth);
    pTool->touchEndedX = 203;
    pTool->touchEndedY = 66;
    
    pTool->relativeX = 0;
    pTool->relativeY = 0;
    
    pTool->initWithTexture(CCTextureCache::sharedTextureCache()->addImage("yy_tool_1.png"));
    pTool->setPosition(ccp(87,189));
    pTool->setZOrder(5);
    helloWorld->addChild(pTool);    
    pTool->fixKind = BaseBadPoint::NICK;
}